﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LogManager.Base;
using Raven.Client.Indexes;

namespace LogManager.LocalStorage.Indexes
{
    public class IdentificationIndex
    {
        public DateTime TimeStamp { get; set; }
        public string LogName { get; set; }
        public string ServerName { get; set; }
    }

    public class Events_Identification : AbstractIndexCreationTask<Event,IdentificationIndex>
    {
        public Events_Identification()
        {
            Map = events =>
                  from e in events
                  select new {e.TimeStamp, e.LogName, e.ServerName};
        }
    }
}
